#include<stdio.h>
void main()
{
	int a, b, * p1, * p2;
	// input 5, 9
	scanf("%d, %d", &a, &b);
	p1 = &a; p2 = &b;
	if(a < b)
	{
		p1 = &b;
		p2 = &a;
	}
	printf("a=%d, b=%d\n", a, b);
	printf("max=%d, min=%d\n", * p1, * p2);
}
